/*
 * PConexion.java
 *
 * Created on 5 de septiembre de 2006, 08:48 AM
 */

package ig.formato.gui.app;


import ig.basic.util.IModelo;
import ig.formato.dto.SgbdDTO;
import ig.formato.modelo.MConexion;
import ig.basic.util.IMetodosPantallas;
import ig.formato.basic.ManipulacionDatos;
import ig.formato.dto.ConexionDTO;
import ig.formato.util.IGFormatoException;
import ig.formato.util.OBJETOS;
import java.awt.Component;
import java.sql.SQLException;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;

/**
 *
 * @author  jsanchez
 */
public class PConexion extends javax.swing.JPanel implements IMetodosPantallas{
    private ManipulacionDatos mpd;
    
    private MConexion modelo=null;
    private JFrame frame=null;
    /** Creates new form PConexion */
    public PConexion(JFrame frame) {
        initComponents();
        this.frame=frame;
        this.Puerto.setDocument(new ig.formato.util.ValueDocument("INTEGER",100000D));
        mpd = new ManipulacionDatos(true,false);
        mpd.setConfimacioSalir(true,"Desea cerrar la ventana?");
        mpd.setPanelMetodosPantalla(this);
        mpd.setSize(600,320);
        mpd.setResizable(false);
        mpd.setMaximizable(false);
        mpd.setTitle("Configuracion de conexiones");
        modelo= new MConexion(this);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        Nombre = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        Servidor = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        NombreDB = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        CSGDB = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        Puerto = new javax.swing.JTextField();
        Clave = new javax.swing.JPasswordField();
        BTest = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        Usuario = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel8 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();

        jLabel1.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel1.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel1.text")); // NOI18N

        Nombre.setFont(new java.awt.Font("Dialog", 0, 10));
        Nombre.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Nombre.text")); // NOI18N
        Nombre.setToolTipText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Nombre.toolTipText")); // NOI18N
        Nombre.setDisabledTextColor(new java.awt.Color(0, 0, 0));

        jLabel2.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel2.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel2.text")); // NOI18N

        jLabel3.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel3.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel3.text")); // NOI18N

        Servidor.setFont(new java.awt.Font("Dialog", 0, 10));
        Servidor.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Servidor.text")); // NOI18N
        Servidor.setDisabledTextColor(new java.awt.Color(0, 0, 0));

        jLabel4.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel4.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel4.text")); // NOI18N

        NombreDB.setFont(new java.awt.Font("Dialog", 0, 10));
        NombreDB.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.NombreDB.text")); // NOI18N
        NombreDB.setDisabledTextColor(new java.awt.Color(0, 0, 0));

        jLabel5.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel5.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel5.text")); // NOI18N

        CSGDB.setFont(new java.awt.Font("Dialog", 1, 10));
        CSGDB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CSGDBActionPerformed(evt);
            }
        });

        jLabel6.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel6.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel6.text")); // NOI18N

        Puerto.setFont(new java.awt.Font("Dialog", 0, 10));
        Puerto.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Puerto.text")); // NOI18N

        Clave.setFont(new java.awt.Font("Dialog", 0, 10));
        Clave.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Clave.text")); // NOI18N

        BTest.setFont(new java.awt.Font("Dialog", 1, 10));
        BTest.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.BTest.text")); // NOI18N
        BTest.setToolTipText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.BTest.toolTipText")); // NOI18N
        BTest.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        BTest.setName(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.BTest.name")); // NOI18N
        BTest.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BTestActionPerformed(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel7.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel7.text")); // NOI18N

        Usuario.setFont(new java.awt.Font("Dialog", 0, 10));
        Usuario.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Usuario.text")); // NOI18N
        Usuario.setToolTipText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.Usuario.toolTipText")); // NOI18N
        Usuario.setDisabledTextColor(new java.awt.Color(0, 0, 0));

        jLabel8.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel8.setText(org.openide.util.NbBundle.getMessage(PConexion.class, "PConexion.jLabel8.text")); // NOI18N

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jSeparator2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
                    .add(jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
                    .add(jLabel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
                    .add(layout.createSequentialGroup()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jLabel7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(CSGDB, 0, 402, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, NombreDB, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                            .add(Nombre, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                                .add(Servidor, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jLabel6)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(Puerto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                                .add(Clave, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 336, Short.MAX_VALUE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(BTest, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, Usuario, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(14, 14, 14)
                .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 33, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(Nombre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel1))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel2)
                    .add(CSGDB, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(Puerto, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel6)
                    .add(Servidor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel3))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(NombreDB, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel4))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(Usuario, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel5)
                    .add(BTest)
                    .add(Clave, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(8, 8, 8)
                .add(jSeparator2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    
    private void CSGDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CSGDBActionPerformed
        try {
            if(this.modelo!=null && this.modelo.getTO()!=null && CSGDB!=null && CSGDB.getItemCount()>0 && this.CSGDB.getSelectedItem()!=null)
                this.Puerto.setText(((SgbdDTO)this.CSGDB.getSelectedItem()).getPuerto().toString());
        } catch (IGFormatoException ex) {
            ex.printStackTrace();
        }
    }//GEN-LAST:event_CSGDBActionPerformed
    
    private void BTestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BTestActionPerformed
        try {
//            this.validar();
            modelo.test((SgbdDTO) this.CSGDB.getSelectedItem());
            this.mpd.showMensajeSimple("La Conexi\u00F3n Funciona Correctamente.");
        } catch (IGFormatoException ex) {
            this.mpd.showMensaje(ex);
        } catch (SQLException ex) {
            this.mpd.showMensaje(new IGFormatoException(ex,"Error de conexi\u00F3n","Verifique los datos de la conexi\u00F3n"));
        } catch (ClassNotFoundException ex) {
            this.mpd.showMensaje(new IGFormatoException(ex,"No se pudo cargar el Drive","Verifique el driver y la librerias"));
        } catch (NullPointerException  ex) {
            this.mpd.showMensaje(new IGFormatoException(ex,"Error de conexi\u00F3n ","Si es una conexión ODBC, vefique la configuraci\u00F3n del ODBC"));
        } catch (Exception ex) {
            this.mpd.showMensaje(new IGFormatoException(ex,"Error de conexi\u00F3n",ex.toString()));
        }
    }//GEN-LAST:event_BTestActionPerformed
    
    public JInternalFrame getInternalFrame() {
        return mpd;
    }
    
    public void validar() throws ig.formato.util.IGFormatoException {
        if(this.Nombre.getText().trim().equals(""))
            throw new ig.formato.util.IGFormatoException("No se escribio un nombre","Escriba el nombre de la Fuente de Datos.");
        
        try{
            Integer idSGCB=((ig.formato.dto.SgbdDTO)this.CSGDB.getSelectedItem()).getId();
            ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setIdSgbd(idSGCB);
        }catch(Exception e){
            e.printStackTrace();
            throw new ig.formato.util.IGFormatoException(e,"No se pudo resolver el Gestor de Base de Datos.");
        }
        
        if(this.Servidor.getText().trim().equals(""))
            throw new ig.formato.util.IGFormatoException("No se escribio un Servidor","Escriba el Servidor de la Fuente de Datos");
        
        if(this.Puerto.getText().trim().equals(""))
            throw new ig.formato.util.IGFormatoException("No se escribio un puerto","Escriba el Puerto para la Fuente de Datos.");
        
        
        if(this.NombreDB.getText().trim().equals(""))
            throw new ig.formato.util.IGFormatoException("No se escribio uns Base de Datos","Escriba el nombre de la Base de Datos para la Fuente de Datos.");
        
        if(this.Usuario.getText().trim().equals(""))
            throw new ig.formato.util.IGFormatoException("No se escribio un Usuario","Escriba un Usuario para la  Fuente de Datos");
        
        
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setNombre(this.Nombre.getText().trim());
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setHost(this.Servidor.getText().trim());
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setPuerto(Integer.valueOf(this.Puerto.getText().trim()));
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setUsuario(this.Usuario.getText().trim());
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setBaseDeDatos(this.NombreDB.getText().trim());
        
        String key=new String(this.Clave.getPassword());
        ((ig.formato.dto.ConexionDTO)this.modelo.getTO()).setClave(key);
        
        
    }
    
    public void guardar() throws ig.formato.util.IGFormatoException {
        modelo.guardar();
        this.actualizar();
    }
    
    public void buscar() throws ig.formato.util.IGFormatoException, ig.formato.util.NinguDatoSeleccionadoException{
        DBusqueda dialog=new DBusqueda(this.getFrame(),this.modelo,modelo.buscar());
        dialog.setVisible(true);
        if(dialog.getOpcion().equals(OBJETOS.NO_SELECCION)){
            throw new ig.formato.util.NinguDatoSeleccionadoException();
        }else{
            this.actualizar();
        }
    }
    
    public void modificar() throws ig.formato.util.IGFormatoException {
        modelo.modificar();
    }
    
    public void nuevo() throws ig.formato.util.IGFormatoException {
        modelo.nuevo();
        actualizarCombo();
    }
    
    public void eliminar() throws ig.formato.util.IGFormatoException {
        modelo.eliminar();
    }
    
    public void salir() throws ig.formato.util.IGFormatoException {
        modelo.salir();
        this.CSGDB.removeAllItems();
        this.CSGDB.removeAll();
    }
    
    public void imprimir() throws ig.formato.util.IGFormatoException {
        this.mpd.parametros.put("JASPER","Conexion");
    }

    public Map getParametros() throws IGFormatoException {
        return null;
    }
    
    public void limpiar() throws IGFormatoException {
    
    }
    
    public void cancelar() throws ig.formato.util.IGFormatoException {
//        modelo.cancelar();
//        modelo.buscar();
        modelo.cancelar();
        this.actualizar();        
    }
    
    public Component[] getControles() {
        return this.getComponents();
    }
    
    public void setFrame(JFrame frame) {
        this.frame=frame;
    }
    
    public JFrame getFrame() {
        return frame;
    }

    public IModelo getModelo() throws IGFormatoException {
        return this.modelo;
    }
    
    public Object getTO() throws ig.formato.util.IGFormatoException {
        ig.formato.dto.ConexionDTO dto=new ig.formato.dto.ConexionDTO();
        dto.setNombre(this.Nombre.getText().trim());
        dto.setHost(this.Servidor.getText().trim());
        dto.setPuerto(Integer.valueOf(this.Puerto.getText().trim()));
        dto.setUsuario(this.Usuario.getText().trim());
        dto.setBaseDeDatos(this.NombreDB.getText().trim());
        
        String key=new String(this.Clave.getPassword());
        dto.setClave(key);
        
        Integer idSGCB=((ig.formato.dto.SgbdDTO)this.CSGDB.getSelectedItem()).getId();
        dto.setIdSgbd(idSGCB);
        return dto;
    }
    private void actualizarCombo() throws IGFormatoException{
        this.CSGDB.removeAllItems();
        Object obj=null;
        for (Object elem : modelo.getSGDB()) {
            this.CSGDB.addItem(elem);
            if(((ig.formato.dto.SgbdDTO)elem).getId().equals(((ig.formato.dto.ConexionDTO)modelo.getTO()).getIdSgbd()))
                obj=elem;
        }
        if(obj!=null){
            this.CSGDB.setSelectedItem(obj);
        }else if(CSGDB.getItemCount()>0)
            this.CSGDB.setSelectedIndex(0);
    }
    public void actualizar() throws IGFormatoException {
        actualizarCombo();
        if(((ig.formato.dto.ConexionDTO)modelo.getTO()).getId()!=null){
            this.Nombre.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getNombre());
            this.Servidor.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getHost());
            this.NombreDB.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getBaseDeDatos());
            this.Puerto.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getPuerto().toString());
            this.Clave.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getClave());
            this.Usuario.setText(((ig.formato.dto.ConexionDTO)modelo.getTO()).getUsuario());
        }
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BTest;
    private javax.swing.JComboBox CSGDB;
    private javax.swing.JPasswordField Clave;
    private javax.swing.JTextField Nombre;
    private javax.swing.JTextField NombreDB;
    private javax.swing.JTextField Puerto;
    private javax.swing.JTextField Servidor;
    private javax.swing.JTextField Usuario;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    // End of variables declaration//GEN-END:variables
    
}
